package com.company.project.service.impl;

import com.company.project.dao.NewsDetailMapper;
import com.company.project.model.News;
import com.company.project.model.NewsDetail;
import com.company.project.service.NewsDetailService;
import com.company.project.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


/**
 * Created by CodeGenerator on 2018/10/08.
 */
@Service
@Transactional
public class NewsDetailServiceImpl extends AbstractService<NewsDetail> implements NewsDetailService {
    @Resource
    private NewsDetailMapper newsDetailMapper;

    @Override
    public Boolean addMessage(News news) {
        return newsDetailMapper.addMessage(news);
    }

    @Override
    public Boolean upNewsD(News news) {
        return newsDetailMapper.upNewsD(news);
    }

    /**
     * 删除新闻内容
     */
    @Override
    public Boolean deleteNewDetail(News news) {
        return newsDetailMapper.deleteNewDetail(news);
    }
}
